robertlipe [Wed, 24 Jul 2013 02:31:23 +0000 (02:31 +0000)]
Roll back part of previous change. This should be a local time.
Tested with a variety of TZ values and seems OK now.
robertlipe [Tue, 23 Jul 2013 17:03:58 +0000 (17:03 +0000)]
Name track in trackfilter using UTC, not local time.
robertlipe [Tue, 23 Jul 2013 06:35:53 +0000 (06:35 +0000)]
Fix track filter to not "randomly" reorder points within a track when
sub-second times are in play.
Addresses problem reported March 26 2010 (sigh) by Klaus Rheinwald.
robertlipe [Tue, 23 Jul 2013 02:18:26 +0000 (02:18 +0000)]
Integrate mapsend.cc.patch, microseconds-6.patch from Gerhard.
robertlipe [Tue, 23 Jul 2013 01:50:49 +0000 (01:50 +0000)]
Wrap more tests of implicit time_t == 0 inside isValid.
robertlipe [Tue, 23 Jul 2013 01:07:47 +0000 (01:07 +0000)]
Remove jeeps/main.cc
robertlipe [Tue, 23 Jul 2013 01:05:08 +0000 (01:05 +0000)]
Gerhard gets QtCreator going for Windows, updates doc.
robertlipe [Mon, 22 Jul 2013 20:21:52 +0000 (20:21 +0000)]
Reconcile patch set with Gerhard. Remove special case convenience for msec();
we dont' do it for hours or days...Rounding in gopal. Fix botch in ggv.
robertlipe [Mon, 22 Jul 2013 04:44:06 +0000 (04:44 +0000)]
Remove the final (?) vestigest of microseconds as a separate member.
Gopal was a stupid bug within gopal itself. creation_time was being written
three independent times per line (sigh) and once MS quit being a separate field,
it was no longer retained across writes.
robertlipe [Mon, 22 Jul 2013 03:55:56 +0000 (03:55 +0000)]
Rethink time interpolation in arcdist in light of better time functions.
robertlipe [Sun, 21 Jul 2013 22:53:44 +0000 (22:53 +0000)]
Let mapsend test run in isolation. From Gerhard.
robertlipe [Sat, 20 Jul 2013 02:41:38 +0000 (02:41 +0000)]
Get rid of explicit usec refs in destinator, waypt, and unicsv.
robertlipe [Sat, 20 Jul 2013 02:16:28 +0000 (02:16 +0000)]
Another joint effort with Gerhard. Quit pretending that we have microsecond
support. Be more honest and call it millisecond everywhere. Remove more
explicit accesses to microseconds member. Still not quite zero, but getting
closer and this is a good checkpoint.
robertlipe [Fri, 19 Jul 2013 22:53:28 +0000 (22:53 +0000)]
Gerhard and I swat a few more places, esp in KML writer, using implicit
time conversions for validity.
robertlipe [Fri, 19 Jul 2013 17:01:07 +0000 (17:01 +0000)]
Provide msecsTo in DateTime for Qt 4.6.
robertlipe [Fri, 19 Jul 2013 04:26:06 +0000 (04:26 +0000)]
Revert bogon that slipped into testo.
robertlipe [Fri, 19 Jul 2013 03:22:33 +0000 (03:22 +0000)]
Gerhard & I work on route.cc:track_recompute to compute time difference
(for computing speeds) in a way more natural with QDateTime, eliminating
funkiness when overloading to time_t.
Regneerate reference track files.
tsteven4 [Fri, 19 Jul 2013 02:33:57 +0000 (02:33 +0000)]
improve cross platform test matching by rounding instead of truncating latitude/longitude.
tsteven4 [Fri, 19 Jul 2013 02:02:25 +0000 (02:02 +0000)]
increase precision in cetus speed calculation to minimize test mismatches.
robertlipe [Thu, 18 Jul 2013 17:06:18 +0000 (17:06 +0000)]
Don't set time in Ozi if it's not valid.
robertlipe [Thu, 18 Jul 2013 03:10:00 +0000 (03:10 +0000)]
Avoid implicit time_t conversion in waypt_add that would result
in creation_time being zeroed.
robertlipe [Thu, 18 Jul 2013 02:16:35 +0000 (02:16 +0000)]
Let nmea, itracku round time on read. Regnerate reference/track/nmea.gpx.
robertlipe [Thu, 18 Jul 2013 02:11:31 +0000 (02:11 +0000)]
Cap excess (fantasy) precision in gtrnctr. Regenerate reference files.
robertlipe [Wed, 17 Jul 2013 23:43:48 +0000 (23:43 +0000)]
Don't artificially restrict time precision of ozi reader based on time precision of ozi writer. Fix ozi test reference to cope.
robertlipe [Wed, 17 Jul 2013 04:54:18 +0000 (04:54 +0000)]
Squeegee out a few more explicit references to the microseconds member.
robertlipe [Wed, 17 Jul 2013 03:20:24 +0000 (03:20 +0000)]
Get rid of a few more explicit microsecond accesses.
Add GPX test for wild and crazy times.
robertlipe [Wed, 17 Jul 2013 02:46:35 +0000 (02:46 +0000)]
Clean up jtr, gopal, random, stmsdf explicit use of microseconds member.
robertlipe [Wed, 17 Jul 2013 02:44:44 +0000 (02:44 +0000)]
Regenerate garmin GPX fit reference GPX files.
robertlipe [Wed, 17 Jul 2013 01:54:00 +0000 (01:54 +0000)]
Use doubles, not floats, internally for html, text, garmin_fit.
robertlipe [Wed, 17 Jul 2013 01:53:12 +0000 (01:53 +0000)]
Make maggeo consistent about TZ when reading and writing dates. (This is
still grubby code, but it's hardly strategic...)
robertlipe [Wed, 17 Jul 2013 01:38:35 +0000 (01:38 +0000)]
Round fractional time when reading XML beyond milliseoconds.
robertlipe [Wed, 17 Jul 2013 01:37:52 +0000 (01:37 +0000)]
Cap gtrnctr writer for lat/lon at 7 digits, like Garmin does.
Regenerate test files.
robertlipe [Wed, 17 Jul 2013 01:30:52 +0000 (01:30 +0000)]
Modification of the round() workaround for MSVC, defining in defs.h instead of lowrance*.cc
robertlipe [Tue, 16 Jul 2013 23:14:56 +0000 (23:14 +0000)]
Remove write-only variable in gpx.cc
robertlipe [Tue, 16 Jul 2013 02:49:04 +0000 (02:49 +0000)]
Improve test for navicache reader. unicsv reference file has more data
than the gpsutil (which is about all we had Back In The Old Days)
robertlipe [Mon, 15 Jul 2013 22:55:13 +0000 (22:55 +0000)]
Expat doc fixes.
robertlipe [Mon, 15 Jul 2013 16:47:32 +0000 (16:47 +0000)]
Update config.{guess,sub} from Automake 1.13.
robertlipe [Mon, 15 Jul 2013 16:39:56 +0000 (16:39 +0000)]
Fix gpx test lameness.
robertlipe [Mon, 15 Jul 2013 16:37:02 +0000 (16:37 +0000)]
More splitting of testo cases.
robertlipe [Mon, 15 Jul 2013 16:28:18 +0000 (16:28 +0000)]
Split a whole bunch of the testo suite into smaller files.
Someday, I'll make these parallelizabe...
robertlipe [Mon, 15 Jul 2013 16:07:10 +0000 (16:07 +0000)]
More MSVC work.
robertlipe [Mon, 15 Jul 2013 02:05:25 +0000 (02:05 +0000)]
Gerhard's MSVC battle continues.
robertlipe [Sun, 14 Jul 2013 21:07:22 +0000 (21:07 +0000)]
Rename jeeps/gpsutil.cc->jeeps/jgpsutil.cc. No reasont to keep fighting both
MSVC and qMake over this.
robertlipe [Sun, 14 Jul 2013 20:52:20 +0000 (20:52 +0000)]
Rename, remove MSVC files per Gerhard.
robertlipe [Sun, 14 Jul 2013 20:41:58 +0000 (20:41 +0000)]
More from Gerhard:
* tpo.cc - use struct instead of parallel arrays
* MSVC update
* shapelib HAVE_CONFIG_H
robertlipe [Fri, 12 Jul 2013 22:58:40 +0000 (22:58 +0000)]
From Gerhard:
* gtm.cc MSVC compiler limit
Converted "else if" structure to array with the following perl snippet, so not hand coded
perl -ne 'BEGIN{$i=-1; $n=0} $t=0; if(/\bn\s*\<\s*(\d+)/){$n2=$1;} if(/indatum\s*=\s*(-?\d+).*\/\*\s*(.*)\*\//){$i=$1;$c=" : $2"; $t=1;}elsif(/\{\s*\}/){$i=-1;$c=""; $t=1;} if($t){print " ";while($n<$n2){print " $i,";$n++;}print " // < $n2$c\n"}' gtm.c.snippet
* QString toAscii() removed in Qt5.1
Replaced use of toAscii() with toLatin1() so Qt5.1 can be used with GPSBabel (commandline, GUI not tested)
Note that gtm.cc file contains "datum" patch too.
robertlipe [Fri, 12 Jul 2013 22:14:12 +0000 (22:14 +0000)]
Fix leak in new geo reader.
robertlipe [Fri, 12 Jul 2013 22:08:44 +0000 (22:08 +0000)]
Turn on newer geo format reader.
robertlipe [Fri, 12 Jul 2013 21:57:34 +0000 (21:57 +0000)]
geo.cc: let it build w/o expat.
cet_util.cc: fixups for the XML_UNICODE case, needed for Windows.
robertlipe [Fri, 12 Jul 2013 21:55:23 +0000 (21:55 +0000)]
Remove special handling of MSVC from types.h now that we can rely on a grown-up
inttypes.
robertlipe [Fri, 12 Jul 2013 21:43:31 +0000 (21:43 +0000)]
Speed GPX writer by 19% by removing implicit time_t conversion in a test
that I'm not convinced matters anyway. ('exported' seems really weird.)
robertlipe [Fri, 12 Jul 2013 17:26:25 +0000 (17:26 +0000)]
Update mapsend to explictly use toLatin1() instead of toAscii.
robertlipe [Fri, 12 Jul 2013 17:23:55 +0000 (17:23 +0000)]
MSVC fixes/workarounds from Gerhard Olsson.
robertlipe [Fri, 12 Jul 2013 03:15:38 +0000 (03:15 +0000)]
Warning fix.
robertlipe [Fri, 12 Jul 2013 01:21:00 +0000 (01:21 +0000)]
From Gerhard Olsson:
Three parts. The second/third part is normally inactive in the code.
gtrnctr.c
Average Cadence in laps was handled as floats with one decimal but the xml format specifies char.
Some programs therefore failed to parse the generated xml
CadenceValue_t in http://www8.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd
jeeps
Cadence is invalid if it is 255 in Garmin USB. This is handled for track points but not for lap data.
garmin.c
(inactive) function read_lap_as_track() was not updated to the new string handling
robertlipe [Wed, 10 Jul 2013 04:47:02 +0000 (04:47 +0000)]
Shave another 17% of read performance out on GPX read by eliminating a
copy/converstion on each incoming tag.
robertlipe [Wed, 10 Jul 2013 03:29:40 +0000 (03:29 +0000)]
Make GPX reader 9% faster just with a better hash.
robertlipe [Wed, 10 Jul 2013 03:03:02 +0000 (03:03 +0000)]
Performance improvements in geo reader
robertlipe [Wed, 10 Jul 2013 00:14:34 +0000 (00:14 +0000)]
Fix problem in self-closing tags in GPX extensions, such as would be found in geocaches with no travel bugs
robertlipe [Tue, 9 Jul 2013 01:33:42 +0000 (01:33 +0000)]
Fix GPX stream writer to actually work like a stream writer and not double-
buffer the output in memory.
robertlipe [Mon, 8 Jul 2013 22:33:43 +0000 (22:33 +0000)]
Don't potentitally double-quote icons in KML writer.
robertlipe [Mon, 8 Jul 2013 18:19:15 +0000 (18:19 +0000)]
Fix several "obvious" memory leaks in various readers. Fallout from our
half-C/half-QString implementation at this time.
robertlipe [Mon, 8 Jul 2013 00:24:58 +0000 (00:24 +0000)]
Mem fix in gtrnctr for last change.
robertlipe [Sun, 7 Jul 2013 23:56:36 +0000 (23:56 +0000)]
Death to xml_fill_in_time with its weird interface. Replace with
PrettyPrinter in our DateTime except for coastexp which does its own
thing.
robertlipe [Sun, 7 Jul 2013 21:56:23 +0000 (21:56 +0000)]
Tweak building doc for Fedora 19.
robertlipe [Sun, 7 Jul 2013 21:50:02 +0000 (21:50 +0000)]
Enforce checks during configure time for working C++ compiler, Qt4.
robertlipe [Sun, 7 Jul 2013 19:30:44 +0000 (19:30 +0000)]
Another try at xml_parse_time - leave the parsing to us, but delegate the
storage to QDateTime. This is ugly, but is here to coddle Centos' ancient
version of Qt (4.6.2)...
robertlipe [Sun, 7 Jul 2013 04:09:21 +0000 (04:09 +0000)]
Victory! (?) With this in place, GPX times before 1970 and after 2038
work just fine. Yes, this is a gross hack for OSM that I need to come back
to..
robertlipe [Sun, 7 Jul 2013 03:50:17 +0000 (03:50 +0000)]
More conversion on the time_t -> QDateTime effort. Most of the GPX path
is "bigtime" safe now, I think.
robertlipe [Sat, 6 Jul 2013 23:21:32 +0000 (23:21 +0000)]
Remove (most of) the autoformat overrides in the KML writer and fix
our reference files to match these lovely examples of whitespace purity.
robertlipe [Sat, 6 Jul 2013 22:00:30 +0000 (22:00 +0000)]
Document dependency on Qt for gpsbabel.org/htmldoc-development/Source.html
robertlipe [Sat, 6 Jul 2013 21:49:59 +0000 (21:49 +0000)]
Fix crash on 'gpsbabel -x'
robertlipe [Sat, 6 Jul 2013 21:00:12 +0000 (21:00 +0000)]
Round, don't truncate lowrance coords on write
robertlipe [Sat, 22 Jun 2013 03:10:57 +0000 (03:10 +0000)]
Tweak Garmin fit for Forerunner 10. Thanks to Ingo Arndt.
robertlipe [Mon, 17 Jun 2013 05:12:58 +0000 (05:12 +0000)]
Move more of times into accessors, more modern times.
Many of the remaining explicit accesses to wpt->microseconds aren't actually
using it as microseconds at all, but rather as a generic integer. :-(
robertlipe [Mon, 17 Jun 2013 02:07:08 +0000 (02:07 +0000)]
A ridiculously large commit as a checkpoint in refactoring the time_t + an int
for microseconds into a QDateTime to give us sensible interface to time
beyond 1970 and 2032 and, more topically, more unified handling of sub-second
time now that 10Hz GPSes aren't uncommon.
This gets almost all of the accesses to wpt->creation_time into accessors
(with overloads for int/time_t and QDateTime) and eliminates many of
the problematic direct accesses to wpt->microseconds.
robertlipe [Thu, 13 Jun 2013 04:45:48 +0000 (04:45 +0000)]
Add (yet unused) addUSec shim to datetime so we can begin migrating our
explicit microsec use.
robertlipe [Wed, 12 Jun 2013 18:15:58 +0000 (18:15 +0000)]
Fix crash on empty navilink route name. Route names can be up to 13 chars.
robertlipe [Mon, 10 Jun 2013 22:49:13 +0000 (22:49 +0000)]
Remove unicsv test from gtrnctr since it (stupidly) uses local time in a reference file.
robertlipe [Mon, 10 Jun 2013 01:32:59 +0000 (01:32 +0000)]
Add, test code for reading speed from Garmin Training Center files as this
reportedly contains additional filtering/smoothing over pure
great-circle/timestamps as collected by GPS. (Perhaps distance is measured
by wheel sensors, for example...)
robertlipe [Mon, 10 Jun 2013 00:59:42 +0000 (00:59 +0000)]
Remove false const-ification from datetime overrides.
robertlipe [Sun, 9 Jun 2013 23:17:34 +0000 (23:17 +0000)]
Fix Ozi route reader to not treat header as routepoints.
robertlipe [Sun, 9 Jun 2013 23:16:41 +0000 (23:16 +0000)]
garmin_gpi: Seek to image offset in case there's additional headers in the
bmp, such as those inserted by gimp, etc.
Fix warning when compiling with debug.
robertlipe [Sun, 9 Jun 2013 23:05:43 +0000 (23:05 +0000)]
garmin_gpi: Seek to image offset in case there's additional headers in the
bmp, such as those inserted by gimp, etc.
Fix warning when compiling with debug.
robertlipe [Mon, 3 Jun 2013 03:54:56 +0000 (03:54 +0000)]
Start laying some half-hearted groundwork for rte_name to be a QString.
robertlipe [Mon, 3 Jun 2013 01:45:58 +0000 (01:45 +0000)]
Swap fields 3 and 4 in ozi route writer.
robertlipe [Mon, 3 Jun 2013 00:37:50 +0000 (00:37 +0000)]
Futile attempts to hush some of the hyperactive warnings in XCode.
robertlipe [Mon, 3 Jun 2013 00:23:38 +0000 (00:23 +0000)]
Move gpsutil.cc in pbxproj.
robertlipe [Mon, 3 Jun 2013 00:18:55 +0000 (00:18 +0000)]
Remove workaround for qmake silliness from XCode project.
robertlipe [Sun, 2 Jun 2013 23:59:30 +0000 (23:59 +0000)]
Overhaul KML writer to not repeat input when called multiple times on output.
Destroy QXmlStreamWriter when we close since it seems to lose its mind if
called with an emptry string which makes Earth grump about the blank line.
Add tests for all that.
Minor code cleanups.
robertlipe [Sun, 2 Jun 2013 23:52:45 +0000 (23:52 +0000)]
A crude stab at an XCode project.
robertlipe [Sun, 2 Jun 2013 19:15:26 +0000 (19:15 +0000)]
Add configlog option to Skytraq.
robertlipe [Thu, 30 May 2013 22:54:24 +0000 (22:54 +0000)]
Rearrange includes. inspired by, but not executed by, https://code.google.com/p/include-what-you-use/
robertlipe [Wed, 1 May 2013 04:21:31 +0000 (04:21 +0000)]
Warning cleanup after last change.
robertlipe [Wed, 1 May 2013 04:19:45 +0000 (04:19 +0000)]
Remove same use of vmem from xmlgeneric as I just did for gpx.
robertlipe [Wed, 1 May 2013 03:58:55 +0000 (03:58 +0000)]
Replace easiest use of vmem, current_tag, in gpx.cc.
robertlipe [Wed, 1 May 2013 02:48:36 +0000 (02:48 +0000)]
Fix scaler in tpo.cc reader. Regenerate reference files.
tsteven4 [Sun, 7 Apr 2013 22:25:11 +0000 (22:25 +0000)]
fix gcc warnings about non-local variables using anonymous types.
tsteven4 [Tue, 2 Apr 2013 23:09:10 +0000 (23:09 +0000)]
exif fixes.
supply default speed_ref for the reader.
report undefined alt_refs in the reader.
correctly output the gps tag version tag in the writer.
use the correct value for the altitude reference tag in the writer so that negative altitudes are correctly written.
tsteven4 [Mon, 1 Apr 2013 00:29:22 +0000 (00:29 +0000)]
Pass more const class arguements by refernces, a fix const correctness fixes, declare a few functions static to limit scope.